var xmlHttp;
function sndReq(vote,id_num,ip_num,units)
{
	
	//alert("A " + vote + " B " + id_num+ " C " + ip_num); 
	//alert("A " + vote + " B " + id_num + " C " + ip_num  + " D " + units + "");
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url = "http://www.123mycodes.com/fallingobject/rpc.php";
//url1 = url+"?t="+ip_num+"&j="+vote+"&q="+id_num;

urk = url+"?j="+vote+"&q="+id_num+"&t="+ip_num+"&c="+units;
/*var url="http://localhost/123contact/rpc.php";
 url=url+"?j="+vote;
 url=url+"&q="+id_num;
 url=url+"&t="+ip_num;
 url=url+"&c="+units;*/

xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",urk,true)
xmlHttp.send(null)


function stateChanged() 
{ 
  
	if (xmlHttp.readyState == 4)
	     {
	 document.getElementById("test").innerHTML=xmlHttp.responseText;
		
          }
	  
	
}

}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}